package com.xmy.cultivate.service.impl;

import com.xmy.cultivate.entity.OrganizationDepartmentPrincipal;
import com.xmy.cultivate.mapper.OrganizationDepartmentPrincipalMapper;
import com.xmy.cultivate.service.IOrganizationDepartmentPrincipalService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 部门负责人详情 服务实现类
 * </p>
 *
 * @author hpiggy
 * @since 2025-05-27
 */
@Service
public class OrganizationDepartmentPrincipalServiceImpl extends ServiceImpl<OrganizationDepartmentPrincipalMapper, OrganizationDepartmentPrincipal> implements IOrganizationDepartmentPrincipalService {

    @Autowired
    OrganizationDepartmentPrincipalMapper organizationDepartmentPrincipalMapper;


    @Override
    public OrganizationDepartmentPrincipal getPrincipalByDepartmentId(Integer yearPart, Integer quarterNum, Long schoolId) {
        return organizationDepartmentPrincipalMapper.getPrincipalByDepartmentId(yearPart, quarterNum, schoolId);
    }
}
